package top.yueyazhui.business.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import top.yueyazhui.common.bean.Response;

@FeignClient("order")
@RequestMapping("/order")
public interface OrderFeign {

    @PostMapping("/add")
    Response addOrder(@RequestParam("userId") String userId, @RequestParam("commodityCode") String commodityCode, @RequestParam("count") Integer count, @RequestParam("money") Double money);
}
